home *** CD-ROM | disk | FTP | other *** search
- /*
- File: Message.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __MESSAGE__
- #define __MESSAGE__ 1
-
- #ifndef __BLJSTANDARDINCLUDES__
- #include "BLJStandardIncludes.h"
- #endif
-
- #ifndef __DIRECTOBJECT__
- #include "DirectObject.h"
- #endif
-
- /***********************************|****************************************/
-
- class TMessage : public TDirectObject
- {
- public: TMessage ( );
- TMessage ( const char * message );
- TMessage ( const unsigned char * message ); // pascal-style string
- TMessage ( short baseID, short index );
-
- virtual ~TMessage ( );
-
- public: virtual Handle GetTextHandle ( ) const;
- virtual unsigned long GetTextLength ( ) const;
-
- virtual void Lock ( ) const;
- virtual void Unlock ( ) const;
-
- public: virtual Boolean SetItemValue ( const char * item, const char * newValue );
- virtual Boolean SetItemValue ( const char * item, const Str255& );
-
- protected:
- Handle fMessage;
- unsigned long fLockCount;
- };
-
- /***********************************|****************************************/
-
- #endif
-